import React, { Component } from "react";
import ReactRom from "react-dom";
import Comment from "./component/comment.ts";

export default function initComment(config) {
  class App extends Component {
    state = {
      show: false,
    };

    render() {
      return (
        <div>
          <h1> Hello React depend webpack babel </h1>
          <Comment />
        </div>
      );
    }
  }
  console.log(1111);
  ReactRom.render(<App />, document.getElementById("colgcomment"));
  // alert(config);
  // if(config.show){
  // }
}
